package cn.innosmart.aq.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by David on 2015/8/17.
 */
public class ActionBean implements Parcelable {
    public static final Parcelable.Creator<ActionBean> CREATOR = new Parcelable.Creator<ActionBean>() {
        public ActionBean createFromParcel(Parcel source) {
            return new ActionBean(source);
        }

        public ActionBean[] newArray(int size) {
            return new ActionBean[size];
        }
    };
    //执行设备的序列
    private int order;
    //执行设备的字段
    private String field;
    //执行设备的值
    private double value;
    //执行设备的Address
    private String address;

    public ActionBean() {
    }

    protected ActionBean(Parcel in) {
        this.order = in.readInt();
        this.field = in.readString();
        this.value = in.readDouble();
        this.address = in.readString();
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.order);
        dest.writeString(this.field);
        dest.writeDouble(this.value);
        dest.writeString(this.address);
    }
}
